const router = require('koa-router')()

router.get('/list', (ctx) => {
  ctx.body = 'list'
})

router.post('/addnews', async (ctx, next) => {
  const rb = ctx.request.body
  ctx.response.body = 'success'
})

router.post('/postRoute', async (ctx, next) => {
  const rb = ctx.request.body
  ctx.body = rb
})

module.exports = router
